package starter.stepdefinitions.orangehrmlive;

import io.cucumber.java.en.And;
import io.cucumber.java.en.Then;
import net.serenitybdd.annotations.Steps;
import starter.actions.orangehrmlive.TopbarPageSteps;

/**
 * @ClassName HeaderPageStepdefs
 * @Date 2024/10/30 09:13 15
 * @Author Jack Chen
 * @Description serenity-cucumber-page-objects-starter-master
 * @Version 1.0
 */

public class TopbarPageStepdefs {

    @Steps
    TopbarPageSteps topbarPageSteps;

    @And("user click logout button to quite system")
    public void userClickLogoutButtonToQuiteSystem() {
        topbarPageSteps.userLogout();
    }

    @Then("dashboard page shows")
    public void dashboardPageShows() {
        topbarPageSteps.verifyHeaderTitle("Dashboard");
    }
}
